<div jc-repeat-e1='custom_fields'>
	
	<div jc-repeat-col="e1.cols">
		<div style="clear:both">
		<div jc-repeat-field='col.fields'>
			<div style="float:left border:1px solid #ccc">
			<label>
				{{field.name}}[{{field.type}}]
			</label>
			<input jc-if='field.type|formElem|toBoolean(input)' jc-type='field.type' jc-required='filed.required|toBoolean(1)'/>
			<select jc-if='field.type|formElem|toBoolean(select)' jc-required='field.required|toBoolean(1)' jc-value='field.default' jc-checked='default'>
				<option jc-repeat-option='$data.dropDown'  jc-value='option.key'>{{option.value}}</option>
			</select>
			<textarea jc-if='field.type|formElem|toBoolean(textarea)'></textarea>
			</div>
		</div>
		</div>
	</div>
</div>

<hr/>


<form>
<div jc-repeat-e1='custom_fields'>
	<div jc-repeat-col="e1.cols">
		<div jc-repeat-field='col.fields'>
			<label>
				{{field.name}}[{{field.type}}]
			</label>
			<input type='text' jc-name='field._id' />
			<select jc-if='field.type|formElem|toBoolean(select)' jc-required='field.required|toBoolean(1)' jc-value='field.default' jc-name='field._id'>
				<option jc-repeat-option='$data.dropDown' jc-selected='"k2"==this.option.key'  jc-value='option.key'>{{option.value}}</option>
			</select>
			<select jc-if='field.type|formElem|toBoolean(select)' >
				<option value="1">1</option>
				<option selected value="2">2</option>
				<option value="3">3</option>
			</select>
		</div>
	</div>
</div>
<button type="submit">提交</button>
</form>